package org.istt.dao;

import java.util.List;

import org.displaytag.properties.SortOrderEnum;
import org.istt.domain.Exchange;
import org.joda.time.DateTime;

public interface ExchangeDao extends Dao<Exchange, Long> {
	
	List<Exchange> getExchangeMessageByReceiver(Long receiverId,int firstRecordIndex, int pageSize, SortOrderEnum sortDirection, String sortCriterion);
	
	List<Exchange> getExchangeMessageByFile(String fileId,DateTime date);

	int getNumberOfMessageByReceiver(Long receiverId,boolean status);
	
	int getRecordCountByReceiver(Long receiverId);
}
